<{foreach from=$cat item=list}>
<li>
	<div>
		<a <{if $list.sub!=null}>class="sup"<{/if}> href="<{$config.weburl}>/?m=product&s=product_list&id=<{$list.catid}>">
		<{$list.cat}>
		</a>
	</div>
	<{if $list.scat!=null}>
		<p>
			<{foreach from=$list.scat item=item}>     
			<a href="<{$config.weburl}>/?m=product&s=product_list&id=<{$item.catid}>"><{$item.cat}></a>
			<{/foreach}>
		</p>
	<{/if}>
</li>
<{/foreach}>